#ifndef LIFEPROVIDER_H
#define LIFEPROVIDER_H


#include <QObject>
#include <QNetworkReply>
#include <QStringList>
#include <QtNetwork/QAbstractSocket>
#include <QtNetwork/QSslSocket>
#include "serviceprovider.h"


QT_BEGIN_NAMESPACE
class QSslSocket;
QT_END_NAMESPACE

class LifeProvider : public ServiceProvider
{
    Q_OBJECT
public:
    explicit LifeProvider(ServiceProvider *parent = 0);
    explicit LifeProvider(QString login, QString password, int parameter=0, ServiceProvider *parent = 0);
    ~LifeProvider();

    LifeProvider     & operator =(LifeProvider &profile);

public slots:
private:
    QByteArray*         PreparePostRequest();
    bool                ParseError(QByteArray &reply);
    void                ParseGetReply(QString &reply);
    void                ParsePostReply(QByteArray &reply);
    QString             *csrfmiddlewaretoken;
    int                 current_progress;
};

#endif // LIFEPROVIDER_H
